import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Sw2{
	public int x,y;
	public static void sw2(Sw2 boo) {
		int tmp;
		tmp = boo.x;
		boo.x = boo.y;
		boo.y = tmp;
		System.out.println(" sw2 x= " + boo.x + " sw2 y = " 
				+ boo.y);
		
	}
}

class ex_5_5{
	
	public static void title(){
		System.out.println("**** call by address 사용 메서드호출 ****");
		System.out.println("****    정보통신전자공학부         ****");
		System.out.println("****     20052426 장수은         ****");
	}
	public static void sw1(int x, int y){
		System.out.println(" before switching x : " + x + " y: " + y);
		int tmp;
		tmp = x;
		x = y;
		y = tmp;
		System.out.println(" after switching x : " + x + " y: " + y);
		
	}
	public static void main(String args[]) throws IOException{
		title();
		String input;
		Sw2 test = new Sw2(); 
		System.out.print(" type the num1 you wish to switch: ");
		InputStreamReader isrd = new InputStreamReader(System.in);
		BufferedReader brd = new BufferedReader(isrd);
		input = brd.readLine();
		test.x = Integer.parseInt(input);
		System.out.print(" type the num2 you wish to switch: ");
		input = brd.readLine();
		test.y = Integer.parseInt(input);
		Sw2.sw2(test);
		
	}
	
}